<template>
  <div class="logo">
    <!-- 在线的绝对路径 -->
    <!-- <img
      src="https://p0.meituan.net/scarlett/448afce485c1f342895185c2be668fa411803.png@80q"
      alt=""
    /> -->

    <!-- 相对路径也没问题 -->
    <!-- <img src="../../../assets/images/logo.png" alt="" /> -->

    <!-- 如果使用了相对路径，同时又用了data的变量，图片就不能正常显示了 -->
    <img :src="url" alt="" />
  </div>
</template>

<script>
import url from "@/assets/images/logo.png";
export default {
  data() {
    return {
      url: url,
    };
  },
};
</script>

<style lang="less" scoped>
// @import "../../../assets/css/var.less";
.logo {
  width: 100%;
  height: 60px;
  border-bottom: 1px solid @border-color;
  background-color: #fff;

  img {
    width: 94px;
    height: 39px;
    margin: 10px 0 0 10px;
  }
}
</style>
